package com.etone.smartAudit.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Async;
import org.springframework.stereotype.Service;

/***
 * portal任务service
 */
@Service
public class PortalTaskService {

    @Autowired
    private PUumUserinfoService uumUserinfoService;


    @Autowired
    private PUumOrganizationinfoService organizationinfoService;

    /***
     * 同步人员和组织
     */
//    @Async
    public void synOrgAndEmployee() throws Exception {
        uumUserinfoService.synUserInfo();
        organizationinfoService.synOrgnization();
    }
}
